﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Class1
/// </summary>
public class ProFilmPoster
{
    public ProFilmPoster()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public DataSet LoadPoster(int iCinema)
    {
        ConnectDB db = new ConnectDB();
        DataSet ds = new DataSet();

        DateTime dtStart = DateTime.Parse(ConfigurationManager.AppSettings.GetValues("startshow")[0]);
        DateTime dtEnd = DateTime.Parse(ConfigurationManager.AppSettings.GetValues("endshow")[0]);
        
        ds = db.LoadPoster(dtStart, dtEnd, iCinema);

        return ds;
    }
}
